﻿using BootstrapBlazor.Components;
using BootstrapBlazorApp.Shared.Data.SYS.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BootstrapBlazorApp.Shared.Data.SYS
{
    public class DictionaryDto : BaseDto
    {
        [Display(Name = "字典类型")]
        [Required(ErrorMessage = "字典类型是必填的"), MaxLength(50)]
        [AutoGenerateColumn(IsReadonlyWhenEdit = true, Searchable = true, Filterable = true)]
        public string DictionaryType { get; set; }

        [Display(Name = "字典类型描述")]
        [Required(ErrorMessage = "字典类型描述是必填的"), MaxLength(50)]
        [AutoGenerateColumn(Searchable = true, Filterable = true)]
        public string DictionaryTypeName { get; set; }

        [Display(Name = "字典值")]
        [Required(ErrorMessage = "字典值是必填的"), MaxLength(50)]
        [AutoGenerateColumn( Searchable = true, Filterable = true)]
        public string DictionaryValue { get; set; }

        [Display(Name = "字典值描述")]
        [Required(ErrorMessage = "字典值描述是必填的"), MaxLength(50)]
        [AutoGenerateColumn(Searchable = true, Filterable = true)]
        public string DictionaryDescription { get; set; }
    }
}
